misc
Class Range

java.lang.Object
  extended by misc.Range

public class Range
extends java.lang.Object

This is a tuple class which is used to pass on a double range.

Author:
Alex Dirkzwager, Mark Hendrikx

Constructor Summary
Range(double lowerbound, double upperbound)
          Specifies a continuous range.
 
Method Summary
 double getLowerbound()
          Returns the lowerbound of the range.
 double getUpperbound()
          Returns the upperbound of the range.
 void increaseUpperbound(double increment)
          Increases the upperbound by the given increment.
 void setLowerbound(double lowerbound)
          Set the lowerbound of the range.
 void setUpperbound(double upperbound)
          Set the upperbound of the range.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Range

public Range(double lowerbound,
             double upperbound)
Specifies a continuous range.

Parameters:
lowerbound - of the range.
upperbound - of the range.
Method Detail

getUpperbound

public double getUpperbound()
Returns the upperbound of the range.

Returns:
upperbound of range.

getLowerbound

public double getLowerbound()
Returns the lowerbound of the range.

Returns:
lowerbound of range.

setUpperbound

public void setUpperbound(double upperbound)
Set the upperbound of the range.

Parameters:
upperbound - of the range.

setLowerbound

public void setLowerbound(double lowerbound)
Set the lowerbound of the range.

Parameters:
lowerbound - of the range.

increaseUpperbound

public void increaseUpperbound(double increment)
Increases the upperbound by the given increment.

Parameters:
increment - amount which should be added to the upperbound.